<?php
use think\facade\Route;

// 注意：现在已启用多应用模式，admin应用的路由配置已移至app/admin/route/app.php
// 此文件保留仅作参考

/*
// 后台登录相关路由
Route::group('admin', function () {
    Route::get('login', 'admin.login/index');
    Route::post('login', 'admin.login/login');
    Route::get('logout', 'admin.login/logout');
});

// 验证码路由
Route::get('captcha', 'admin.login/captcha');

// 需要登录验证的路由
Route::group('admin', function () {
    // 首页
    Route::get('index', 'admin.index/index');
    Route::get('welcome', 'admin.index/welcome');
    
    // 用户管理
    Route::group('user', function () {
        Route::get('index', 'admin.user/index');
        Route::get('list', 'admin.user/list');
        Route::post('status', 'admin.user/status');
        Route::get('detail/:id', 'admin.user/detail');
    });
    
    // 纸条管理
    Route::group('note', function () {
        Route::get('index', 'admin.note/index');
        Route::get('list', 'admin.note/list');
        Route::post('status', 'admin.note/status');
        Route::get('detail/:id', 'note/detail');
    });
    
    // 抽取记录管理
    Route::group('draw', function () {
        Route::get('index', 'admin.draw/index');
        Route::get('list', 'admin.draw/list');
        Route::get('detail/:id', 'admin.draw/detail');
    });
    
    // 佣金记录管理
    Route::group('commission', function () {
        Route::get('index', 'admin.commission/index');
        Route::get('list', 'admin.commission/list');
        Route::get('detail/:id', 'admin.commission/detail');
    });
    
    // 提现管理
    Route::group('withdraw', function () {
        Route::get('index', 'admin.withdraw/index');
        Route::get('list', 'admin.withdraw/list');
        Route::post('audit', 'admin.withdraw/audit');
        Route::get('detail/:id', 'admin.withdraw/detail');
    });
    
    // 系统设置
    Route::group('system', function () {
        Route::get('setting', 'admin.system/setting');
        Route::post('setting', 'admin.system/updateSetting');
    });
    
    // 管理员管理
    Route::group('admin', function () {
        Route::get('index', 'admin.admin/index');
        Route::get('list', 'admin.admin/list');
        Route::post('add', 'admin.admin/add');
        Route::post('edit', 'admin.admin/edit');
        Route::post('delete', 'admin.admin/delete');
        Route::post('status', 'admin.admin/status');
        Route::get('profile', 'admin.admin/profile');
        Route::post('updateProfile', 'admin.admin/updateProfile');
        Route::post('updatePassword', 'admin.admin/updatePassword');
    });
});
*/ 